package com.ygly.struts.pro;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.ygly.struts.bizs.ProBiz;

public class Response extends ActionSupport {

	/**
	 * @return
	 */
	private int proid;
	public int getProid() {
		return proid;
	}
	public void setProid(int proid) {
		this.proid = proid;
	}
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		ActionContext con = ActionContext.getContext();
		HttpServletRequest request = (HttpServletRequest )con.get(ServletActionContext.HTTP_REQUEST);
		int is = Integer.parseInt(request.getParameter("is"));
		int stuid = Integer.parseInt(request.getParameter("stuid"));
		this.proid = Integer.parseInt(request.getParameter("proid"));
		ProBiz probiz = new ProBiz();
		probiz.ResponseStu(proid, stuid, is);
		request.setAttribute("iddd", proid);
		return "SUCCESS";
	}
}